<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta charset="UTF-8">
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/bootstrap.css" />
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/bootstrap-responsive.css" />
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/style.css" />
        <script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
        <script type="text/javascript" src="__PUBLIC__/Js/jquery.sorted.js"></script>
        <script type="text/javascript" src="__PUBLIC__/Js/bootstrap.js"></script>
        <script type="text/javascript" src="__PUBLIC__/Js/ckform.js"></script>
        <script type="text/javascript" src="__PUBLIC__/Js/common.js"></script>
        <script type="text/javascript" src="__PUBLIC__/js/date/WdatePicker.js"></script>
        <style type="text/css">
            body {
                padding-bottom: 40px;
            }
            .sidebar-nav {
                padding: 9px 0;
            }

            @media (max-width: 980px) {
                /* Enable use of floated navbar text */
                .navbar-text.pull-right {
                    float: none;
                    padding-left: 5px;
                    padding-right: 5px;
                }
            }
        </style>
        <script type="text/javascript">
            function del(id) {
                if (confirm('确认删除吗？')) {
                    location.href = '__APP__/User/del/id/' + id;
                }
            }
        </script>
    </head>
    <body>
        <form class="form-inline definewidth m20" method="get" action="">
            <button id="addnew" class="btn btn-success" type="button" onclick="location.href = '__APP__/Goods/add'">添加产品</button>
        </form>
        <table class="table table-bordered table-hover definewidth m10">
            <thead>
                <tr>
                    <th>产品ID</th>
                    <th>产品名称</th>
                    <th>缩略图</th>
                    <th>产品价格</th>
                    <th>优惠价格</th>
					<th>图片1</th>
					<th>图片2</th>
					<th>图片3</th>
					<th>图片4</th>
					<th>图片5</th>
					<th>图片6</th>
                    <th>操作</th>
                </tr>
            </thead>
            <empty name="lists">
                <tr><td colspan="12">无查询记录</td></tr>
                <else />
                <volist name="lists" id="list">
                    <tr>
                        <td>{$list.goods_id}</td>
                        <td>{$list.goods_name}</td>
                        <td>{$list.goods_thumb}</td>
                        <td>{$list.goods_price}</td>
                        <td>{$list.after_discount}</td>
						<td>{$list.img1}</td>
						<td>{$list.img2}</td>
						<td>{$list.img3}</td>
						<td>{$list.img4}</td>
						<td>{$list.img5}</td>
						<td>{$list.img6}</td>
                        <td>
							[<a href="__APP__/Goods/edit/goods_id/{$list.goods_id}">编辑</a>]&nbsp;&nbsp;
                            [<a href="__APP__/Goods/del/id/{$list.goods_id}" onclick='return del()'>删除</a>]&nbsp;&nbsp;
                        </td>
                    </tr>
                </volist>
            </empty>

        </table>
        <div class="inline pull-right page">
            {$show}
        </div>
		<script>
			function del(){
				if(confirm("确定要删除吗？")){
					return true;
				}else{
					return false;
				}
			}
		</script>
    </body>
</html>